# -*- codeing = utf-8 -*-
# @Time : 2021/2/20 11:20
# @Atuthor: 朱朱
# @File: 006字符串统计.py
# @Software: PyCharm
msg = 'abcdefgabcdefgabcdefgaabbddeefsglhosodaaaa'

print(msg.count('a'))
msg.count('a',8,)